ArticleFrom http://blog.csdn.net/liangziyisheng/article/details/7024222
We often set the background job. Generally, we set a time point to start the job execution. Another kind of background job is triggered by an event.
How to Implement event
Planned (sched): the step of the background job has been defined, but the start condition of the job is not defined.Released: the step and start condition of the background job have been defined, and the related job has been release by the person
Copy CodeThe code is as follows:
Class Controller_jobs extends controller_base{Public function before () {Parent::before ();if (Request:: $protocol! = "CLI") {Die ("Only CLI allowed!\n");}}Public function after () {Parent::after ();Do some
background jobs and workers
Document directory
Content of this section:
Introduction
Background job
About job persistence
Create a background job
Add a new job to the queue
Default background Job Manager
Background job
There is also a background service concept in the redis system. The background service and background thread mainly act as background I/O service in redis. With the support of background threads, the execution efficiency of the system will
In the Redis system also exists the concept of background services, background service, background thread in the Redis performance mainly for background I/O service, with the support of the background thread, the system in the implementation of the
Retrieve the job queue from the database and create a new process for execution. wait until the job ends.
The code is as follows:
Class Controller_Jobs extends Controller_Base {
Public function before (){
Parent: before ();
If (Request: $ protocol!
Copy codeThe Code is as follows:Class Controller_Jobs extends Controller_Base {Public function before (){Parent: before ();If (Request: $ protocol! = "Cli "){Die ("Only cli allowed! \ N ");}}Public function after (){Parent: after ();// Do some
Retrieve the job queue from the database and create a new process for execution. wait until the job ends.
Copy codeThe code is as follows:
Class Controller_Jobs extends Controller_Base {
Public function before (){
Parent: before ();
If (Request: $
(1) place a job running on the foreground to run in the background.
Kentzhan @ hadoop10-196-144-27: ~> ./Multi_run_serial.sh 20130320 2.txt 【ProgramRunning. Press Ctrl + Z to pause the program]
[1] + stopped./multi_run_serial.sh 20130320 2.txt
Copy Code code as follows:
Class Controller_jobs extends controller_base{
Public function before () {
Parent::before ();
if (Request:: $protocol!= "CLI") {
Die ("Only CLI allowed!\n");
}
}
Public function after () {
Parent::after ();
Retrieve the job Queue from the database and create a new process for execution. Wait until the job ends.
Retrieve the job Queue from the database and create a new process for execution. Wait until the job ends.
The Code is as follows:
Class
PowerShell is single-threaded and can only do one thing at a time. Background jobs can add additional PowerShell processes to processing jobs in the background. It is a good solution when the program needs to run at the same time and the amount of
Server|sqlserver| backstage in the database application system, the full use of the database backend server function can simplify the client front desk work, but also reduce the network load, while making the whole system design more reasonable,
Logon processTerminal LoginInit reads the terminal information from the/etc/ttys, and for each terminal that is allowed to log in, fork the child process and execute Getty. Getty open End Device and execute login:Execle ("/bin/login," "Login", "-P",
Background jobs, which are primarily used to run programs that need to process large amounts of data without requiring interaction. Personally, it is not difficult to create, configure, and monitor background jobs easily. Background Job management
From the operating system perspective, a job is a user task running in a computer system. In Unix/Linux systems, a job can be defined as one or more commands entered in the command line. Linux is a real multi-user and multi-task operating system,
In the single terminal interface of Linuxbashshell for job switching and offline management in the front and backend of Linux, we often need to manage or complete multiple jobs at the same time, such as performing compilation while implementing data
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.